import 'package:flutter/material.dart';
import 'package:flutter_widget/utils/theme.dart';
class ColorThemeProvider extends ChangeNotifier {
  
  int _color = 0;
  MaterialColor get color => ColorListUtils.colorList[_color];
  void changeColor(int index) {
    _color = index;
    notifyListeners(); // 刷新ui
  }
}
